package com.hyt.it.ogt.ks.model.vo;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotNull;

import com.hyt.common.apiInfor.DataType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author liuhh
 */
@Data
@Accessors(chain = true)
@ToString
@ApiModel(value = "考生题目答案")
@AllArgsConstructor
@NoArgsConstructor
public class CandidateQusAnsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试项目id")
    @NotNull(message = "考试ID不能为空")
    private String examId;

    @ApiModelProperty(value = "考生准考号")
    @NotNull(message = "考生ID不能为空")
    private String candidateId;

    @ApiModelProperty(value = "大题ID")
    private String topicId;

    @ApiModelProperty(value = "试卷顺序号")
    @NotNull(message = "考生当前试卷顺序不能为空")
    private Integer paperSort;

    @ApiModelProperty(value = "查看答案和解析状态，0：未查看，1：已查看")
    private Integer viewAnswerDescription;

    @ApiModelProperty(value = "保存方式，timing:定时保存，其他为正常保存")
    private String saveType;

    @ApiModelProperty(value = "答案", dataType = DataType.ARRAY)
    private List<QuestionAnswerVO> answer;

    private Boolean loading;
}

